Migrations
---

Migration with knex
---

Migration are used through [knex](http://knexjs.org/). 

You can invoke it directly 

 ```$ ./node_modules/.bin/knex ```

``npm i -g knex`` to install it globally in order to invoke it with : 

``$ knex``

How to create a migration
----

First create a migration table:

``$ knex migrate:create create_table_mytable``

It will create a file under ``./migrations/``

Refer to [knex](http://knexjs.org/)  for how to create a table.

To apply the migration: 

```
$ knex migration:latest
```
